package com.san.base.service;

public interface BaseService {
	
	/**
	 * 根据ID获取对象
	 * @param id
	 * @return
	 */
	Object getById(Long id) throws Exception;
	
	/**
	 * 保存对象
	 * @param o
	 * @return
	 */
	int save(Object obj) throws Exception;
	
	/**
	 * 修改对象
	 * @param o
	 * @return
	 */
	int doEdit(Object obj) throws Exception;
	
	/**
	 * 删除对象
	 * @param id
	 * @return
	 */
	int remove(Long id) throws Exception;
	
	/**
	 * 批量删除
	 * @param ids
	 * @return
	 */
	int batchRemove(Long[] ids) throws Exception;

}
